win32: Use WM_NCDESTROY instead of WM_DESTROY
authorAlexander Larsson <alexl@redhat.com>
Wed, 26 Oct 2011 09:41:35 +0000 (11:41 +0200)
committerAlexander Larsson <alexl@redhat.com>
Thu, 10 Nov 2011 16:41:03 +0000 (17:41 +0100)
WM_NCDESTROY gets called after children are destroyed, which is
the semantics DestroyNotify has in X11.

gdk/win32/gdkevents-win32.c

index b99c03d992b820e4a36e9f2aa8e319e6b35af538..ea3d8fce983d25c1575b54b72de8ee0440ec10cc 100644 (file)
@@ -3118,7 +3118,7 @@ gdk_event_translate (MSG  *msg,
       return_val = TRUE;
       break;
 
-    case WM_DESTROY:
+    case WM_NCDESTROY:
       if (pointer_grab != NULL)
        {
          if (pointer_grab->window == window)